package com.example.demo.entity;

import java.io.Serializable;
import java.security.SecureRandom;
import java.util.Objects;

public class Mdtype implements Serializable {
    private Integer id;
    private String text;

    public Mdtype(Integer id, String text) {
        this.id = id;
        this.text = text;
    }

    public Mdtype() {
    }

    public Integer getid() {
        return id;
    }

    public void setid(Integer id) {
        this.id = id;
    }

    public String gettext() {
        return text;
    }

    public void settext(String text) {
        this.text = text;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Mdtype text1 = (Mdtype) o;
        return Objects.equals(id, text1.id) && Objects.equals(text, text1.text);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, text);
    }

    @Override
    public String toString() {
        return "text{" +
                "id=" + id +
                ", text='" + text + '\'' +
                '}';
    }
}
